using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Dimok.Data.DataSources;

namespace Data.DataSources {
	public class NoteActionCode_StatusesDataSource : ObjectDataSourceBase {
		public override string SelectViewName { get { return "v_NoteActionCode_Statuses"; } }
		public override string InsertViewName { get { return "ts_NoteActionCode_Statuses"; } }
		public int NoteActionCode { set { SetSelectParameter("NoteActionCodeID", value); } }
		public NoteActionCode_StatusesDataSource() {
			EmtyRowPolicy = EmptyRowPolicyType.First | EmptyRowPolicyType.OnlyIfMoreThenOne;
			OrderBy.Add("NoteActionCode");
			OrderBy.Add("Status");
		}
		public NoteActionCode_StatusesDataSource(int NoteActionCode):this() {
			this.NoteActionCode = NoteActionCode;
		}
		public override DataView SelectEx(int NoteActionCodeID) {
			return Select("NoteActionCodeID=@NACID", NoteActionCodeID);
		}
	}
}